package com.cmbchina.config;

import com.cmbchina.service.ExchangeRateService;
import com.cmbchina.service.SinaExchangeRateService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ExchangeRateServiceConfig {

    @Bean
    public ExchangeRateService getExchangeRateService(){
        // 根据具体需求，创建                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            不同的汇率服务（sina/sohu）获取汇率
        return new SinaExchangeRateService();
    }
}
